/* OPTIONS OBS=500  NOREPLACE ; */

%include "ASMimplibs.sas";



data captured_2002 (keep=survunit_id ASSET_TOT_BGN ASSET_TOT_END CAPEX_BUILD CAPEX_MACH_TOT CAPEX_TOT COST_ELEC
                    COST_FUEL COST_MAT_PARTS COST_MAT_TOT COST_RESALE EMP_AVG_PRDWRK HOURS_TOT_M PAY_ANN_PRDWRK);
 set captured.mfg_captr_data_2002;
run;

data captured_2002_supp (keep=survunit_id PAY_ANN RCPT_TOT EMP_SUM_AVGOTH);
 set captured.mfg_captr_data_2002_supp;
run;

proc sort data=captured_2002;
 by survunit_id;
run;
proc sort data=captured_2002_supp;
 by survunit_id;
run;



* Merge captured data with our 2002 concrete sample;

proc sort data=captured_2002; by survunit_id; run;
data concrete02;
 set concrete.concrete02;
 survunit_id = survu_id*1;
run;
proc sort data=concrete02; by survunit_id; run;

data concrete.concrete_cmf_captured02;
 merge concrete02 (in=incmf) captured_2002 (in=incap);
by survunit_id;
if incmf;
run;


